<!DOCTYPE html>
<html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>结算页</title>
    <link rel="stylesheet" type="text/css" href="./css/all.css" />
    <link rel="stylesheet" type="text/css" href="./css/pages-getOrderInfo.css" />
</head>

<body>
	<!--head-->
	<!-- 头部栏位 -->
	<!--页面顶部-->
<div id="nav-bottom">
	<!--顶部-->
	<div class="nav-top">
		<div class="top">
			<div class="py-container">
				<div class="shortcut">
					<ul class="fl">
						<li class="f-item">慧科欢迎您！</li>
						<li class="f-item">请<a href="login.html" target="_blank">登录</a>　<span><a href="register.html" target="_blank">免费注册</a></span></li>
					</ul>
					<div class="fr typelist">
						<ul class="types">
							<li class="f-item"><span>我的订单</span></li>

							<li class="f-item"><span><a href="cart.html" target="_blank">我的购物车</a></span></li>
							<li class="f-item"><span><a href="home.html" target="_blank">我的慧科</a></span></li>
							<li class="f-item"><span>慧科会员</span></li>
							<li class="f-item"><span>企业采购</span></li>
							<li class="f-item"><span>关注慧科</span></li>
							<li class="f-item"><span><a href="cooperation.html" target="_blank">合作招商</a></span></li>
							<li class="f-item"><span><a href="shoplogin.html" target="_blank">商家后台</a></span></li>
							<li class="f-item"><span>网站导航</li>
						</ul>
					</div>

				</div>
			</div>
		</div>

		<!--头部-->
		<div class="header">
			<div class="py-container">
				<div class="yui3-g Logo">
					<div class="yui3-u Left logoArea">
						<a class="logo-bd" title="慧科" href="index.html" target="_blank"></a>
					</div>
					<div class="yui3-u Rit searchArea">
						<div class="search">
							<form action="" class="sui-form form-inline">
								<!--searchAutoComplete-->
								<div class="input-append">
									<input type="text" id="autocomplete" class="input-error input-xxlarge" />
									<button class="sui-btn btn-xlarge btn-danger" type="button">搜索</button>
								</div>
							</form>
						</div>
					</div>

				</div>

			</div>
		</div>
	</div>
</div>


	<div class="cart py-container">
		<!--主内容-->
		<div class="checkout py-container">
			<div class="checkout-tit">
				<h4 class="tit-txt">填写并核对订单信息</h4>
			</div>
			<div class="checkout-steps">
				<!--收件人信息-->
				<div class="step-tit">
					<h5>收件人信息<span></span></h5>
				</div>
				<div class="step-cont">
					<div class="addressInfo">
						<ul class="addr-detail">
							<li class="addr-item">
								<div class="choose-address" th:each="address : ${confirmVo.userReceiveAddressList}">
									<div th:attr="class=${address.defaultStatus == 1} ? 'con name selected' : 'con name',skuId=${address.id} " ><a href="javascript:;" th:text="${address.name}"><span title="点击取消选择"></span></a></div>
									<div class="con address">
										<span class="place" th:text="${address.province + '' + address.city + '' + address.region + '' + address.detailAddress}">北京市海淀区西二旗上地科学软件园</span>
										<span class="phone" th:text="${address.phone}">13261579099</span>
										<span class="base" th:if="${address.defaultStatus == 1}">默认地址</span>
									</div>
									<div class="clearfix"></div>
								</div>

							<!--	<div class="choose-address">
									<div class="con name"><a href="javascript:;">李西西<span title="点击取消选择"></span></a></div>
									<div class="con address">
										<span class="place">北京市海淀区尚东数字谷1号楼</span>
										<span class="phone">13261579099</span>
									</div>
									<div class="clearfix"></div>
								</div>

								<div class="choose-address">
									<div class="con name"><a href="javascript:;">王希<span title="点击取消选择"></span></a></div>
									<div class="con address">
										<span class="place">北京市西二旗滴滴大厦2号楼203室</span>
										<span class="phone">13261579099</span>
									</div>
								</div>-->
							</li>
						</ul>
						 <!--确认地址-->
					</div>
				</div>
				<div class="hr"></div>
				<!--支付和送货-->
				<div class="payshipInfo">
					<div class="step-tit">
						<h5>支付方式</h5>
					</div>
					<div class="step-cont">
						<ul class="payType">
							<li class="selected">在线支付<span title="点击取消选择"></span></li>
							<li>货到付款<span title="点击取消选择"></span></li>
						</ul>
					</div>
					<div class="hr"></div>
					<div class="step-tit">
						<h5>送货清单</h5>
					</div>
					<div class="step-cont">
						<ul class="send-detail">
							<li>
								<div class="sendType">
									<span>配送方式：</span>
									<ul>
										<li>
											<div class="con express">天天快递</div>
											<div class="con delivery">配送时间：预计8月10日（周三）09:00-15:00送达</div>
										</li>
									</ul>
								</div>
								<div class="sendGoods">
									<span>商品清单：</span>
									<ul class="yui3-g" th:each="item : ${confirmVo.items}">
										<li class="yui3-u-1-6">
											<span><img style="height: 150px;width: 100px;" th:src="${item.image}"/></span>
										</li>
										<li class="yui3-u-7-12">
											<div class="desc" th:text="${item.title}">Apple iPhone 6s (A1700) 64G 玫瑰金色 移动联通电信4G手机硅胶透明防摔软壳 本色系列</div>
											<div class="seven">7天无理由退货</div>
										</li>
										<li class="yui3-u-1-12">
											<div class="price" th:text=" '￥' + ${#numbers.formatDecimal(item.totalPrice,0,2)}">￥5399.00</div>
										</li>
										<li class="yui3-u-1-12">
											<div class="num" th:text=" 'X' + ${item.count} ">X1</div>
										</li>
										<li class="yui3-u-1-12">
											<div class="exit">[[${confirmVo.stocks[item.skuId]?"有货":"无货"}]]</div>
										</li>


									</ul>
									<!--<ul class="yui3-g">
										<li class="yui3-u-1-6">
											<span><img src="./img/goods.png"/></span>
										</li>
										<li class="yui3-u-7-12">
											<div class="desc">Apple iPhone 6s (A1700) 64G 玫瑰金色 移动联通电信4G手机硅胶透明防摔软壳 本色系列</div>
											<div class="seven">7天无理由退货</div>
										</li>
										<li class="yui3-u-1-12">
											<div class="price">￥5399.00</div>
										</li>
										<li class="yui3-u-1-12">
											<div class="num">X1</div>
										</li>
										<li class="yui3-u-1-12">
											<div class="exit">有货</div>
										</li>


									</ul>-->
								</div>
								<div class="buyMessage">
									<span>买家留言：</span>
									<textarea placeholder="建议留言前先与商家沟通确认" class="remarks-cont"></textarea>
								</div>
							</li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="hr"></div>
				</div>

				<div class="linkInfo">
					<div class="step-tit">
						<h5>发票信息</h5>
					</div>
					<div class="step-cont">
						<span>普通发票（电子）</span>
						<span>个人</span>
						<span>明细</span>
					</div>
				</div>
				<div class="cardInfo">
					<div class="step-tit">
						<h5>使用优惠/抵用</h5>
					</div>
				</div>
			</div>
		</div>
		<div class="order-summary">
			<div class="static fr">
				<div class="list">
					<span><i class="number" th:text="${confirmVo.countNum}">1</i>件商品，总商品金额</span>
					<em class="allprice" th:text=" '¥' + ${#numbers.formatDecimal(confirmVo.totalAccount,0,2)} ">¥5399.00</em>
				</div>
				<div class="list">
					<span>返现：</span>
					<em class="money">0.00</em>
				</div>
				<div class="list">
					<span>运费：</span>
					<em class="transport">0.00</em>
				</div>
			</div>
		</div>
		<div class="clearfix trade">
			<div class="fc-price">应付金额:　<span class="price" th:text=" '¥' + ${#numbers.formatDecimal(confirmVo.totalAccount,0,2)} ">¥5399.00</span></div>
			<div class="fc-receiverInfo">
				寄送至:
				<span id="receive-address">北京市海淀区三环内中关村尚东数字谷1号楼</span>
				收货人：<span id="receive-name">老胡</span>
				<span id="receive-phone">13322333267</span>
			</div>
		</div>
		<div class="submit">
			<form action="/order/createOrder" method="post" id="submitOrderFrom">
				<input name="addrId" type="hidden">
				<input name="payType" value="1" type="hidden">
				<input name="orderToken" th:value="${confirmVo.orderToken}">
			</form>
			<a class="sui-btn btn-danger btn-xlarge" href="javascript:void(0);">提交订单</a>
		</div>
	</div>
	<!-- 底部栏位 -->
	<!--页面底部-->
<div class="clearfix footer">
	<div class="py-container">
		<div class="footlink">
			<div class="Mod-service">
				<ul class="Mod-Service-list">
					<li class="grid-service-item intro  intro1">

						<i class="serivce-item fl"></i>
						<div class="service-text">
							<h4>正品保障</h4>
							<p>正品保障，提供发票</p>
						</div>

					</li>
					<li class="grid-service-item  intro intro2">

						<i class="serivce-item fl"></i>
						<div class="service-text">
							<h4>正品保障</h4>
							<p>正品保障，提供发票</p>
						</div>

					</li>
					<li class="grid-service-item intro  intro3">

						<i class="serivce-item fl"></i>
						<div class="service-text">
							<h4>正品保障</h4>
							<p>正品保障，提供发票</p>
						</div>

					</li>
					<li class="grid-service-item  intro intro4">

						<i class="serivce-item fl"></i>
						<div class="service-text">
							<h4>正品保障</h4>
							<p>正品保障，提供发票</p>
						</div>

					</li>
					<li class="grid-service-item intro intro5">

						<i class="serivce-item fl"></i>
						<div class="service-text">
							<h4>正品保障</h4>
							<p>正品保障，提供发票</p>
						</div>

					</li>
				</ul>
			</div>
			<div class="clearfix Mod-list">
				<div class="yui3-g">
					<div class="yui3-u-1-6">
						<h4>购物指南</h4>
						<ul class="unstyled">
							<li>购物流程</li>
							<li>会员介绍</li>
							<li>生活旅行/团购</li>
							<li>常见问题</li>
							<li>购物指南</li>
						</ul>

					</div>
					<div class="yui3-u-1-6">
						<h4>配送方式</h4>
						<ul class="unstyled">
							<li>上门自提</li>
							<li>211限时达</li>
							<li>配送服务查询</li>
							<li>配送费收取标准</li>
							<li>海外配送</li>
						</ul>
					</div>
					<div class="yui3-u-1-6">
						<h4>支付方式</h4>
						<ul class="unstyled">
							<li>货到付款</li>
							<li>在线支付</li>
							<li>分期付款</li>
							<li>邮局汇款</li>
							<li>公司转账</li>
						</ul>
					</div>
					<div class="yui3-u-1-6">
						<h4>售后服务</h4>
						<ul class="unstyled">
							<li>售后政策</li>
							<li>价格保护</li>
							<li>退款说明</li>
							<li>返修/退换货</li>
							<li>取消订单</li>
						</ul>
					</div>
					<div class="yui3-u-1-6">
						<h4>特色服务</h4>
						<ul class="unstyled">
							<li>夺宝岛</li>
							<li>DIY装机</li>
							<li>延保服务</li>
							<li>京南E卡</li>
							<li>京南通信</li>
						</ul>
					</div>
					<div class="yui3-u-1-6">
						<h4>帮助中心</h4>
						<img src="./img/wx_cz.jpg">
					</div>
				</div>
			</div>
			<div class="Mod-copyright">
				<ul class="helpLink">
					<li>关于我们<span class="space"></span></li>
					<li>联系我们<span class="space"></span></li>
					<li>关于我们<span class="space"></span></li>
					<li>商家入驻<span class="space"></span></li>
					<li>营销中心<span class="space"></span></li>
					<li>友情链接<span class="space"></span></li>
					<li>关于我们<span class="space"></span></li>
					<li>营销中心<span class="space"></span></li>
					<li>友情链接<span class="space"></span></li>
					<li>关于我们</li>
				</ul>
				<p>北京开课吧科技有限公司版权所有</p>
				<p>京ICP证140465号 京ICP备13032407号-1</p>
			</div>
		</div>
	</div>
</div>
<!--页面底部END-->
<script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>

<script>


$(function(){
	$(".address").hover(function(){
		$(this).addClass("address-hover");
	},function(){
		$(this).removeClass("address-hover");
	});

	$(".choose-address .name").click(function(){
		 $(this).addClass("selected");
		 $(this).parent().siblings().children('.name').removeClass("selected");
		 var place = $(this).siblings('.address').children('.place').text();
		 var phone = $(this).siblings('.address').children('.phone').text();
		 $("#receive-name").text($(this).text());
		 $("#receive-address").text(place);
		 $("#receive-phone").text(phone)
	});
	$(".payType li").click(function(){
		 $(this).toggleClass("selected").siblings().removeClass("selected");
	});

	$("div.submit a").click(function () {
		// 获取skuId属性值
		var skuId = $("div.choose-address div.selected").attr("skuId");
		// 给表单属性赋值
		$("input[name='addrId']").val(skuId);

		// 提交表单
		$("#submitOrderFrom").submit();

    })

})


</script>

</body>

</html>
